package top.littlejiang.onlinexam.mapper;

import org.apache.ibatis.annotations.Param;
import top.littlejiang.onlinexam.common.base.BaseDao;
import top.littlejiang.onlinexam.entity.OlexamMenuRole;

import java.util.List;

/**
 * <p>
 * OlexamMenuRole Mapper 接口
 * </p>
 *
 * @author chen
 * @since 2020-12-26
 */
public interface OlexamMenuRoleMapper extends BaseDao<OlexamMenuRole> {

    /**
     * 根据角色查询菜单id
     * @param roleId
     * @return
     */
    List<Integer> getMenusByRole(@Param("roleId") int roleId);
}
